package com.oig.sys.workflow.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Getter
@Setter
@ToString
public class FlowConfigVo {

    @Schema(description = "ID")
    private Integer id;

    @Schema(description = "系统编码")
    private String sysCode;
    @Schema(description = "业务编码")
    private String bizType;

    @Schema(description = "流程编码")
    private String flowCode;
    @Schema(description = "流程名称")
    private String flowName;
    @Schema(description = "三方流程类型")
    private String type;
    @Schema(description = "流程表单json")
    private String formJson;
    @Schema(description = "自定义节点json")
    private String nodeJson;
    @Schema(description = "是否开启了订阅0-否1-是")
    private String subscribed;
    @Schema(description = "回调通知地址")
    private String notifyUrl;
    @Schema(description = "状态")
    private String status;

    @Schema(description = "流程表单配置项")
    private List<FlowFormVo> flowFormVoList;

    @Schema(description = "所属租户id")
    private Integer tenantId;
    @Schema(description = "所属租户名称")
    private String tenantName;

    @Schema(description = "创建人id")
    private Integer createUserId;
    @Schema(description = "创建人")
    private String createUserName;
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @Schema(description = "最后更新人id")
    private Integer lastUpdateId;
    @Schema(description = "最后更新人")
    private String lastUpdateName;
    @Schema(description = "最后更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastUpdateTime;

}
